package com.qf.staff.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.staff.pojo.Stock;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface StockMapper extends BaseMapper<Stock> {
    @Update("update yu_stock  set status = #{status}  where stock_id = #{stockId}")
    int updateByStatus(Stock stock);

    int updateByAllStatus(@Param("ids") List<Integer> ids, @Param("status") int status);
}